package application

import (
	"shyxy-net/gateway/config"
	"shyxy-net/gateway/http/services"
)

func New(config *config.Config) (*Application, error) {
	serviceManager := services.NewServiceManager(config.ConsulConfig.Address, config.ConsulConfig.Discovery)
	application := newApplication(config, serviceManager)
	return application, nil
}
